package com.mkl.system.service;

import com.mkl.system.common.DataGridView;
import com.mkl.system.domain.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mkl.system.vo.RoleVo;

import java.util.List;

/**
 * @author king
 * @version 1.0
 * @date 2020/3/5 18:20
 */
public interface RoleService extends IService<Role> {

    DataGridView queryAllRole(RoleVo roleVo);

    List<Integer> queryMenuIdsByRid(Integer id);

    void saveRoleMenu(Integer rid, Integer[] mids);

    DataGridView queryAllAvailableRoleNoPage(RoleVo roleVo);

    List<String> queryRoleNamesByUserId(Integer id);
}

